<%@page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="core" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>运营管理系统</title>
<script type="text/javascript" src='/operation/js/jquery.js'></script>
<script type="text/javascript">
var $j = jQuery.noConflict();
</script>
<script type="text/javascript" src="/operation/js/bootstrap.js"></script>
<script type="text/javascript" src="/operation/js/smc.js"></script>
<link type="text/css" href="/operation/css/bootstrap.css" rel="stylesheet" />
<style type="text/css">
select, input, img, select {
	vertical-align:middle;
}
a {
	text-decoration:none;
}
.clear {
	clear:both;
}
.wrapper {
	width:1024px;
	height:490px;
	margin:0 auto;
	padding-top:100px;
}
.con {
	width:1024px;
}
.con_left {
	width:742px;
	height:321px;
	background:url(images/login/img_1.jpg);
	float:left;
}
.con_right {
	width:282px;
	float:left;
}
.login {
	width:246px;
	height:297px;
	background:url(images/login/img_2.jpg);
	padding:12px;
}
.login_tit {
	width:246px;
	line-height:40px;
	font-size:16px;
	color:#08348a;
	font-family:"微软雅黑";
	font-weight:bold;
}
.login_con {
	width:246px;
	padding-top:15px;
	background:url(images/login/img_4.jpg) no-repeat bottom center;
	padding-bottom:40px;
}

.login p{padding-top:10px;  color:#b7b7b7;}


table td{height:35px;}

.bot_info{width:1024px; height:30px; text-align:center; color:#0a2576; padding-top:140px;}
</style>
<script type="text/javascript" src='common/js/jquery.js'></script>
<script type="text/javascript">
$j(document).ready(function load() {
	if (window.parent != window)
		window.parent.location = "login.jsp";
	$j('#j_username').focus();
});

function login() {
	if($j("#j_username").val() == "") {
		alert("请输入用户名！");
		$j("#j_username").focus();
	} else if($j("#j_password").val() == "") {
		alert("请输入口令！");
		$j("#j_password").focus();
	} else {
		$j("#loginform").submit();
	}
}
function valid_loginname(event) {
	if (event.keyCode == 13) {
		if($j("#j_username").val() == "") {
			alert("请输入用户名！");
			$j("#j_username").focus();
		} else {
			$j("#j_password").focus();
		}
	}
}
</script>
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
  <div class="navbar-inner">
    <div class="container-fluid">
      <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </a>
      <a class="brand" href="#">运营管理系统</a>
    </div>
  </div>
</div>

<div class="wrapper">
  <div class="con">
    <div class="con_left"></div>
    <div class="con_right">
      <div class="login">
        <div class="login_tit">运营管理系统</div>
        <div class="login_con">
        <form name="loginForm" id="loginform" method="post" action="login" class="form-horizontal">
          <table width="246" border="0">
            <tr>
              <td>登录名：</td>
                <td>
                  <input name="userName" type="text" id="j_username" class="input-medium" onkeydown="valid_loginname(event);"/>
                </td>
              </tr>
            <tr>
              <td>密&nbsp;&nbsp;码：</td>
                <td><input name="password" type="password" id="j_password" class="input-medium" onkeydown="if(event.keyCode == 13){login();return false;}"/></td>
              </tr>
            <!--tr>
              <td>验证码：</td>
              <td><input name="" type="text"  style="width:70px;"/> <a href="#"><img src="images/login/img_5.jpg" /></a></td>
            </tr-->
            <tr><td colspan="2">&nbsp;</td></tr>
            <tr>
              <td>&nbsp;</td>
              <td>
                <button type="button" class="btn btn-primary" onclick="login();">登录</button>
              </td>
            </tr>
          </table>
          </form>
        </div>
        <p style="display: none">○ 如果您忘记用户名密码,请<a href="#">与管理员联系!.</a></p>
      </div>
    </div>
  </div>
  <div class="clear"></div>
  <!--div class="bot_info">
  Copyright © 2013 All rights reserved 神州数码信息系统有限公司 版权所有
  </div-->
  
</div>
</body>
</html>

